package com.yanqu.road.server.cmd.union.cross;

import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.server.cmd.CrossCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.protocol.Protocol;
import com.yanqu.road.server.timer.union.CrossUnionSyncTask;

@Cmd(code = Protocol.C_CROSS_UNION_REQUEST_ALL_BASE_DATA, desc = "区服请求跨服全量数据")
public class RequestCrossUnionDataCmd extends CrossCommand {

    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        return true;
    }

    @Override
    public void execute(YanQuMessage packet) throws Exception {

        //MessageHelper.sendChannelPacket(serverId, 0, YanQuMessageUtils.buildMessage(Protocol.S_CROSS_UNION_SYNC_FROM_CROSS, CrossUnionMgr.sendAllUnionGroupData(serverId)));
        CrossUnionSyncTask.addServerList(serverId);
    }

    @Override
    public void sendData() {

    }
}
